﻿#region Header
// ------------------------ Licence / Copyright ------------------------
// 
// ScrumTable for Scrum Meeting Support
// Copyright © HSR - Hochschule für Technik Rapperswil
// All Rights Reserved
// 
// Author:
//  Michael Gfeller Silvan Gehrig Patrick Boos
// 
// ---------------------------------------------------------------------
#endregion

#region Usings
using System.Windows.Input;
using ScrumTable.UI.ViewModel.Controller;

#endregion

namespace ScrumTable.UI.ViewModel.Tag
{
    /// <summary>
    /// Description of the class
    /// </summary>
    public class RegisterTagViewModel : ViewModelBase
    {

        #region Declarations
        //--------------------------------------------------------------------
        // Declarations
        //--------------------------------------------------------------------
        private RelayCommand _goToOk;
        
        /// <summary>
        /// Command for moving forward in the registration workflow
        /// </summary>
        /// <value>The go to OK.</value>
        public ICommand GoToOK
        {
            get
            {
                if (_goToOk == null)
                {
                    _goToOk = new RelayCommand(
                        param => GoTo(NavigationTarget.RegisterView),
                        param => true
                        );
                }
                return _goToOk;
            }
        }

        #endregion

        #region Properties
        //--------------------------------------------------------------------
        // Properties
        //--------------------------------------------------------------------

        #endregion

        #region Constructors / Destructor
        //--------------------------------------------------------------------
        // Constructors / Destructor
        //--------------------------------------------------------------------
   
        #endregion

        #region Methods
        //--------------------------------------------------------------------
        // Methods
        //--------------------------------------------------------------------
        

        private void GoTo(NavigationTarget toGo)
        {
            NaviController.GoTo(toGo);
        }
        #endregion

        #region Events
        //--------------------------------------------------------------------
        // Events
        //--------------------------------------------------------------------

        #endregion

    }
}